<?php defined('SYSPATH') or die('No direct script access.');
$mydatetime      = Helper_mydatetime::factory();
$arraylist      = Helper_arraylist::factory();
$display         = Helper_displayitems::factory();
?>

<?php $arrays = $arraylist->print_array($table,$id) ?>

<div style="max-width: 800px; border: 1px solid black; padding: 10px; height: 400px;">
	<div style="text-align: center; font-weight: bold;">SURAT PERJANJIAN KONTRAK</div>
	Detail perjanjian kontrak :<br><br>
	<table>
		<tr>
			<td>ID Perjanjian Kontrak</td>
			<td>:</td>
			<td><?php echo $arrays[0]['id'] ?></td>
		</tr>
		<tr>
			<td>ID Pelanggan</td>
			<td>:</td>
			<td><?php echo $arrays[0]['id_pelanggan'] ?></td>
		</tr>
		<tr>
			<td>Nama Pelanggan</td>
			<td>:</td>
			<td><?php echo $display->show_value($arrays[0]['id_pelanggan'],'users','nama') ?></td>
		</tr>
		<tr>
			<td>Lama Sewa</td>
			<td>:</td>
			<td><?php echo $arrays[0]['lama_sewa'] ?></td>
		</tr>
		<tr>
			<td>Harga</td>
			<td>:</td>
			<td><?php echo $arrays[0]['harga'] ?></td>
		</tr>	
	</table>
	Demikian Perjanjian Kontrak ini dibuat agar dapat dipergunakan sebagaimana mestinya.
	<br><br>
	<div>
	<div style="float: left;">
		Pihak Pertama<br><br><br>
		(......................)
	</div>
	<div style="float: right;">
		Pihak Kedua<br><br><br>
		(......................)
	</div>
	</div>
</div>























